const path = require('path')

const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  chainWebpack: (config) => {
    config.resolve.alias.set('@', path.join(__dirname, 'src'))
      .set('@assets', path.join(__dirname, 'src/assets'))
      .set('@components', path.join(__dirname, 'src/components'))
      .set('@mocks', path.join(__dirname, 'src/mocks'))
      .set('@router', path.join(__dirname, 'src/router'))
      .set('@store', path.join(__dirname, 'src/store'))
      .set('@utils', path.join(__dirname, 'src/utils'))
      .set('@views', path.join(__dirname, 'src/views'))
  }
})
